package com.action;

import com.dao.ITabAcceptancecommissionDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabAcceptancecommission;

public class TabAcceptancecommissionAction extends BaseAction implements ModelDriven<TabAcceptancecommission>{
	
	TabAcceptancecommission form = new TabAcceptancecommission();
	public TabAcceptancecommission getModel() {		
		return form;
	}
	private ITabAcceptancecommissionDao tabAcceptancecommissionActionDao;
	public void setTabAcceptancecommissionActionDao(ITabAcceptancecommissionDao tabAcceptancecommissionActionDao){
		this.tabAcceptancecommissionActionDao = tabAcceptancecommissionActionDao;
	}

	public String findByList(){
		form.setPager_count(tabAcceptancecommissionActionDao.findByCount(form));
		form.setTabaclist(tabAcceptancecommissionActionDao.findByList(form));	
		return SUCCESS;
	}

	public String deleteObject(){
		tabAcceptancecommissionActionDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}
	
	public String updateObject(){
		tabAcceptancecommissionActionDao.updateObject(form);
		return "update";
	}
	

	

}
